/*
 * Nutritionist.java
 * Team qq 2011
 */
package com.google.code.timetrail.backend;

/**
 * Nutritionists start with half the money of most other people, but
 * significantly reduce food usage on the trail
 * 
 * @author Anuraag
 * @version 1.0
 * 
 */
public class Nutritionist extends Person {
	/**
	 * Nutritionist's SerialVersion ID, to be changed when the object is changed
	 **/
	private static final long serialVersionUID = 4040L;
	
	/** The money penalty for being a nutritionist */
	private static final int MONEY_PENALTY = 400;

	/** Skills of Nutritionist */
	private static final int NUTRITIONIST_SKILL = 40;
	
	/**
	 * Removes the money penalty from the inventory provided
	 * 
	 * @param inv
	 *            the provided inventory
	 */
	public void initialBonus(Inventory inv) {
		super.initialBonus(inv);
		inv.removeItem(MONEY_PENALTY, inv.getMoney());
	}

	/**
	 * sets the Nutrionists skill set the skill values are all 0, except for
	 * fitness which is 40
	 */
	public void intializeSkills() {
		final int[] skillSet = { 0, NUTRITIONIST_SKILL, 0, 0 };
		super.setSkills(skillSet);
	}

	/**
	 * toString method for Nutritionist
	 * 
	 * @return nutritionist in string form
	 */
	public String toString() {
		return super.toString() + " is a Nutritionalist";
	}
}
